package com.my.springboot.springbootspringdoc.controller;

import com.my.springboot.springbootspringdoc.entity.User;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

/**
 * @author: marshal
 * @date: 2024-11-11 17:59
 */
@Tag(name = "用户管理", description = "用户管理相关接口")
@RestController
@RequestMapping("/user")
public class UserController {


    @Operation(summary = "获取用户信息")
    @GetMapping("/get/{id}")
    public User getUser(@PathVariable Long id) {
       return null;
    }

    @PostMapping("/add")
    public void add(User user) {

    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
}
